﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;

namespace SCRUM.Core.BusinessObjects
{
    /// <summary>
    /// Business object which holds following information:
    ///  * ID - object's unique identifier (among objects of same type)
    ///  * Name - name of object
    ///  * Estimation - estimation of total work on object
    ///  * Progress - progress of total work on object (in%)
    ///  * LastChange - date of last changes made to object
    ///  * Description - description of object
    ///  * Priority - priority of object (among objects of same type)
    /// </summary>
    [Serializable()]
    public abstract class PriorityBusinessObject : DescriptedBusinessObject
    {
        /// <summary>
        /// Gets or sets the priority.
        /// </summary>
        /// <value>The priority.</value>
        public int Priority { get; set; }

        /// <summary>
        /// Initializes a new instance of the <see cref="PriorityBusinessObject"/> class.
        /// </summary>
        /// <param name="id">The id.</param>
        /// <param name="name">The name.</param>
        /// <param name="description">The description.</param>
        /// <param name="estimation">The estimation.</param>
        /// <param name="progress">The progress.</param>
        /// <param name="priority">The priority.</param>
        /// <param name="change">The change.</param>
        protected PriorityBusinessObject(int id, string name, string description, double estimation, double progress, int priority, DateTime change, int stateID)
            : base(id, name, description, estimation, progress, change, stateID)
        {
            this.Priority = priority;
        }

    }
}

